<template>
	<view class="xieyi">
		<view class="content">
			<view class="inner" v-html="content.content">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ""
			}
		},
		computed: {
			token() {
				return this.$store.state.token;
			}
		},
		onShow() {
			this.getXieYi()
		},
		methods: {
			async getXieYi() {
				let res = await this.$Request("POST", "/Index/protocol", { token: this.token })
				console.log(res);
				if(res.data.code == 200) {
					this.content = res.data.data[0]
				}
			}
		},
	}
</script>

<style scoped lang="scss">
	.xieyi {
		width: 100%;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
	}
</style>
